import demo1.Test1;

/**
 * Created with IntelliJ IDEA.
 * Description：
 * User：user
 * DATE:2021-10-27
 * Time:14:33
 */
class Person{
    public int age;

    public Person(int age){
        this.age = age;
    }
}
public class TestDemo extends Test1 {

    public  void func(){//不能放在main总因为要创建super使用
        Test1 test = new Test1();
        //test.age = 19;不能访问
        System.out.println(super.a);
    }
    public static void main(String[] args) {
        //Person person = new Person(10);
        TestDemo testDemo = new TestDemo();
        testDemo.func();
    }
}
